package homework;

import java.util.Arrays;

/**
 * @Author Stringzhua
 * @Date 2024/1/24 20:43
 * description:一个篮子里放了一些鸡蛋,3个3个地数余1个,5个5个地数余2个,7个7个地数余3个。这篮鸡蛋至少有多少个?
 */
public class test00 {
    public static void main(String[] args) {
        int count = 0;
        while (true) {
            count++;
            if (count % 3 == 1 && count % 5 == 2 && count % 7 == 3) {
                System.out.println("这篮鸡蛋至少有" + count + "个");
                break;
            }
        }
    }
}